feat(HNT-2888): add Redis key names for crawl state - #21
Draft
mmiermans wants to merge 1 commit into
Draft
Conversation
mmiermans
force-pushed
the
claude/hnt-2086-message-validation
branch
from
July 6, 2026 17:08
0b762e8 to
b59806c
Compare
mmiermans
force-pushed
the
claude/hnt-2086-redis-keys
branch
from
July 6, 2026 17:08
54a1f4b to
2d2de0a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
HNT-2888
Define the crawl keyspace in one place so the agent and both worker roles derive the same Redis key for a given URL. This slice adds the seven key builders for the crawl keyspace, the page and article
fetchtimestamps, thelockguards, thepage:enqueuedandarticle:enqueuedagent markers, and thearticle:contentchange-detection key, plus the sharedhashUrl; theredis-stateclient that reads them and the process steps that call them land in later slices.See the state-store keyspace in docs/ARCHITECTURE.md under review as #14.
Implementation decisions
hashUrl, exported fromcrawl-common, with no service composing key strings itself{hash}placeholder the tech spec state-store table uses for every key.namespace:hashwith no dev, stage, or prod segmenthashUrltrims surrounding whitespace before digestingpage:enqueuedandarticle:enqueuedmarkers